import request from './request.js'
export function login(data) {
  return request({
    url: '/api/user/login',
    method: 'get',
    data
  })
}

// 获取骑手状态
export function getStoreStatus() {
	return request({
		url:'/api/rider/detail',
		method:'get'
	})
}

//骑手提交入驻
export function joinUs(data){
	return request({
		url:'/api/rider/join',
		method:'post',
		data
	})
}
//骑手修改资料
export function resetStoreData(data) {
	return request({
		url:'/api/rider/edit',
		method:'post',
		data
	})
}

// 骑手订单
export function getStoreOrder(data) {
	return request({
		url: '/api/rorder/list',
		mehod:'get',
		data
	})
}

// 骑手接单
export function takeStoreOrder(data) {
	return request({
		url: '/api/rorder/take',
		data,
		method:'get'
	})
}

// 骑手取餐
export function tookStoreOrder(data) {
	return request({
		url:'/api/rorder/took',
		mehtod:'get',
		data
	})
}

// 骑手送达
export function sendStoreOrder(data) {
	return request({
		url:'/api/rorder/send',
		mehtod:'get',
		data
	})
}
// 钱包余额
export function getWallet() {
	return request({
		url:'/api/rwallet/my',
		method:'get'
	})
}

// 新增提现
export function payMoney(data) {
	return request({
		url:'/api/rtAmountOut/add',
		method:'post',
		data
	})
}

// 提现记录
export function recordsList() {
	return request({
		url:'/api/rtAmountOut/list',
		mehod:'get'
	})
}

// 账号流水
export function walletList() {
	return request({
		url:'/api/rwallet/list',
		mehod:'get'
	})
}

export function getOrderStatus(data) {
	return request({
		url:'/api/order/process',
		method:'get',
		data
	})
}
export function getOrderDetail(data) {
	return request({
		url: '/api/order/detail',
		method:'get',
		data
	})
}